/**
 * Copyright (c) 2009.kingbi.
 * All rights reserved.
 */

package com.kingbi.system.role.jsfBean;

import java.util.List;

import com.kingbi.system.role.model.RoleModel;
import com.kingbi.util.jsf.ListPageBean;

/**
 * Class description goes here.
 * 
 * Created by Auto Code Produce System User: Date: 20091028 Time: 145359
 */

public class RoleDataBean extends ListPageBean
{

    /*
     * 角色ID
     */
    private int roleID;

    /*
     * 角色编码
     */
    private String roleCode = "";

    /*
     * 角色机构范围
     */
    private String roleOrg = "";

    /*
     * 角色名称
     */
    private String roleName = "";

    /*
     * 角色说明
     */
    private String roleDesc = "";
    
    private String thisRoleFunRight = "";
    
    private String roleFunArray = "";

    public String getRoleFunArray()
    {
        return roleFunArray;
    }

    public void setRoleFunArray(String roleFunArray)
    {
        this.roleFunArray = roleFunArray;
    }

    public String getRoleCode()
    {
        return roleCode;
    }

    public void setRoleCode(String roleCode)
    {
        this.roleCode = roleCode;
    }

    public String getRoleOrg()
    {
        return roleOrg;
    }

    public void setRoleOrg(String roleOrg)
    {
        this.roleOrg = roleOrg;
    }

    public String getRoleName()
    {
        return roleName;
    }

    public void setRoleName(String roleName)
    {
        this.roleName = roleName;
    }

    public String getRoleDesc()
    {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc)
    {
        this.roleDesc = roleDesc;
    }

    public RoleModel getJsfModel()
    {
        RoleModel roleModel = new RoleModel();
        roleModel.setRoleID(this.roleID);
        roleModel.setRoleCode(this.roleCode);
        roleModel.setRoleOrg(this.roleOrg);
        roleModel.setRoleName(this.roleName);
        roleModel.setRoleDesc(this.roleDesc);
        return roleModel;
    }

    public void getJsfDataBean(RoleModel theModel)
    {
        this.setRoleID(theModel.getRoleID());
        this.setRoleCode(theModel.getRoleCode());
        this.setRoleOrg(theModel.getRoleOrg());
        this.setRoleName(theModel.getRoleName());
        this.setRoleDesc(theModel.getRoleDesc());
    }

    public void getEmptyJsfBean()
    {
        this.setRoleID(0);
        this.setRoleCode("");
        this.setRoleOrg("");
        this.setRoleName("");
        this.setRoleDesc("");
        this.setThisRoleFunRight("");
    }

    public int getRoleID()
    {
        return roleID;
    }

    public void setRoleID(int roleID)
    {
        this.roleID = roleID;
    }

    public String getThisRoleFunRight()
    {
        return thisRoleFunRight;
    }

    public void setThisRoleFunRight(String thisRoleFunRight)
    {
        this.thisRoleFunRight = thisRoleFunRight;
    }

}
